package com.aimaterials.resource.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.aimaterials.common.annotation.Excel;
import com.aimaterials.common.core.domain.BaseEntity;

/**
 * 资源对象 res_resource
 *
 * @author DaemonSu
 * @date 2020-11-10
 */
public class ResResource extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 资源主键
     */
    private Long resourceId;

    /**
     * 资源名称
     */
    @Excel(name = "资源名称")
    private String resourceName;

    /**
     * 资源类型
     */
    @Excel(name = "资源类型")
    private String resourceType;

    /**
     * 资源地址
     */
    @Excel(name = "资源地址")
    private String resourceUrl;
    /**
     * 预览地址
     */
    @Excel(name = "预览地址")
    private String preview;

    /**
     * 文件原名
     */
    @Excel(name = "文件原名")
    private String resourceOriginal;

    /**
     * 资源状态
     */
    @Excel(name = "资源状态")
    private String status;

    /**
     * 预留字段1
     */
    @Excel(name = "预留字段1")
    private String res1;

    /**
     * 预留字段2
     */
    @Excel(name = "预留字段2")
    private String res2;

    /**
     * 预留字段3
     */
    private String res3;

    /**
     * 删除标记(0:正常,1:删除)
     */
    private String delFlag;

    /**
     * 学校id
     */
    private Long schoolId;

    /**
     * 资源二维码
     */
    private String qrcode;



    /**
     * 立体教材id
     */
    private Long stereoscopicId;


    public String getQrcode() {
        return qrcode;
    }

    public void setQrcode(String qrcode) {
        this.qrcode = qrcode;
    }

    public void setResourceId(Long resourceId) {
        this.resourceId = resourceId;
    }

    public Long getResourceId() {
        return resourceId;
    }

    public void setResourceName(String resourceName) {
        this.resourceName = resourceName;
    }

    public String getResourceName() {
        return resourceName;
    }

    public void setResourceType(String resourceType) {
        this.resourceType = resourceType;
    }

    public String getResourceType() {
        return resourceType;
    }

    public void setResourceUrl(String resourceUrl) {
        this.resourceUrl = resourceUrl;
    }

    public String getResourceUrl() {
        return resourceUrl;
    }

    public void setRes1(String res1) {
        this.res1 = res1;
    }

    public String getRes1() {
        return res1;
    }

    public void setRes2(String res2) {
        this.res2 = res2;
    }

    public String getRes2() {
        return res2;
    }

    public void setRes3(String res3) {
        this.res3 = res3;
    }

    public String getRes3() {
        return res3;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setSchoolId(Long schoolId) {
        this.schoolId = schoolId;
    }

    public Long getSchoolId() {
        return schoolId;
    }

    public String getResourceOriginal() {
        return resourceOriginal;
    }

    public void setResourceOriginal(String resourceOriginal) {
        this.resourceOriginal = resourceOriginal;
    }


    public Long getStereoscopicId() {
        return stereoscopicId;
    }

    public void setStereoscopicId(Long stereoscopicId) {
        this.stereoscopicId = stereoscopicId;
    }


    public String getPreview() {
        return preview;
    }

    public void setPreview(String preview) {
        this.preview = preview;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("resourceId", getResourceId())
                .append("resourceName", getResourceName())
                .append("resourceType", getResourceType())
                .append("resourceUrl", getResourceUrl())
                .append("res1", getRes1())
                .append("res2", getRes2())
                .append("res3", getRes3())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("schoolId", getSchoolId())
                .toString();
    }
}
